import type { BaseRequestConfigType } from "./type";

// 基本配置类
export class BaseRequestConfig implements BaseRequestConfigType {
  baseURL?: string | undefined;
  timeout?: number | undefined;
  withCredentials?: boolean | undefined;

  constructor(baseURL: string, timeout: number = 60000, withCredentials: boolean = false) {
    this.baseURL = baseURL;
    this.timeout = timeout;
    this.withCredentials = withCredentials;
  }
}

// 导出基本配置
export const baseConfig = new BaseRequestConfig("http://localhost:8085/api/");
